﻿<%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Subscription.Subscription" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>Listview</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
.path .right {
	padding:6px 0 0;
}
.redButtonCss {
	font-family: "Tahoma", "宋体";
	font-size: 9pt;
	color: #0066cc;
	border: 1px #93bee2 solid;
	background-image:url(/Images/redbuttonbg.gif);
	background-color: #fff;
	cursor:pointer;
	font-style: normal;
}
</style>
<script language="javascript">
		
		function selectAll(){
			var len=document.Subscription.elements.length;
			var i;
		    for (i=0;i<len;i++){
			if (document.Subscription.elements[i].type=="checkbox"){
		        document.Subscription.elements[i].checked=true;								
						 }
					}
				}

		function unSelectAll(){
	          var len=document.Subscription.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.Subscription.elements[i].type=="checkbox"){
	                  document.Subscription.elements[i].checked=false; 
	               }   
	        	 } 
		    }		

		</script>
        </head>
<body>
<form id="Subscription" method="post" runat="server">
  <div class="m">
    <div class="path">
      <div class="right">
        <input type="button" onClick="selectAll()" value="全部选择" class="redButtonCss">
        <input type="button" onClick="unSelectAll()" value="全部取消" class="redButtonCss">
        <asp:Button id="btnDeleteSubscription" runat="server" Text="删除订阅" CssClass="redButtonCss"></asp:Button>
      </div>
      <a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 我的项目 >> 我的关注 </div>
    <div class="con">
      <div class="tabnav">
        <p class="tabnavhead"> <span class="active1 tnc"> <a href="../Task/Listview.aspx">我的参与</a> </span> <span class="active2 tnc"> <a href="../Subscription/Listview.aspx">我的关注</a> </span> </p>
      </div>
      <div>
        <asp:datagrid id="dgMySubsciption" runat="server"  HorizontalAlign="Justify" Width="100%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" PageSize="15" OnPageIndexChanged="DataGrid_PageChanged" BorderColor="#337fb2" CellPadding="3" DataKeyField="ClassID">
          <SelectedItemStyle ></SelectedItemStyle>
          <EditItemStyle ></EditItemStyle>
          <AlternatingItemStyle  Height="20px" BackColor="#E8F4FF"></AlternatingItemStyle>
          <ItemStyle  HorizontalAlign="Center" BackColor="White"></ItemStyle>
          <HeaderStyle  HorizontalAlign="Center" Height="24px" ForeColor="White" VerticalAlign="Middle"
								BackColor="#337FB2"></HeaderStyle>
          <FooterStyle ></FooterStyle>
          <Columns>
          <asp:TemplateColumn HeaderText="ID">
            <HeaderStyle  HorizontalAlign="Center" Width="5%"></HeaderStyle>
            <HeaderTemplate> <FONT face="宋体">◎</FONT> </HeaderTemplate>
            <ItemTemplate> <FONT face="宋体">
              <asp:CheckBox id="ClassID" Runat="server"></asp:CheckBox>
              </FONT> </ItemTemplate>
            <EditItemTemplate> <FONT face="宋体"></FONT> </EditItemTemplate>
          </asp:TemplateColumn>
          <asp:HyperLinkColumn Text="项目名称" Target="_self" DataNavigateUrlField="ClassID" DataNavigateUrlFormatString="../Project.aspx?Subscription=1&amp;ClassID={0}"
									DataTextField="ClassName" HeaderText="项目名称">
            <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Left"></ItemStyle>
          </asp:HyperLinkColumn>
          <asp:BoundColumn DataField="FILECOUNT" HeaderText="已归档">
            <HeaderStyle Width="10%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="Status" HeaderText="状态">
            <HeaderStyle Width="10%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="Scale" HeaderText="所占比例">
            <HeaderStyle Width="10%"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center"></ItemStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="StartDate" HeaderText="起始日期">
            <HeaderStyle Width="20%"></HeaderStyle>
          </asp:BoundColumn>
          <asp:BoundColumn DataField="EndDate" HeaderText="截止日期">
            <HeaderStyle Width="20%"></HeaderStyle>
          </asp:BoundColumn>
          </Columns>
          <PagerStyle NextPageText="下一页"  PrevPageText="上一页" HorizontalAlign="center" Mode="NumericPages"></PagerStyle>
        </asp:datagrid>
      </div>
    </div>
  </div>
</form>
</body>
</html>
